package com.fourth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ljx.entity.Stock;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2023/3/6 15:35
 * @Version 1.0
 */
public interface StockDao extends BaseMapper<Stock> {
	@Select("update o_stock set total_num=#{totalNum} where goods_id=#{id}")
	void updateStock(@Param("id") Integer id,@Param("totalNum") Integer totalNum);
}
